Four young people were taken to hospital after being victims of an unprovoked attack by a large group of youths, many of them wearing masks.